/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package monitoring.beans.database;

/**
 *
 * @author Regulus
 */
public class RecordLevelElement {
    private Integer idRecordLevelElement;
    private InstitutionCode institutionCode;
    private CollectionCode collectionCode;
    private BasisOfRecord basisOfRecord;

    public BasisOfRecord getBasisOfRecord() {
        return basisOfRecord == null? new BasisOfRecord():basisOfRecord;
    }

    public void setBasisOfRecord(BasisOfRecord basisOfRecord) {
        this.basisOfRecord = basisOfRecord;
    }

    public CollectionCode getCollectionCode() {
        return collectionCode  == null? new CollectionCode():collectionCode;
    }

    public void setCollectionCode(CollectionCode collectionCode) {
        this.collectionCode = collectionCode;
    }

    public Integer getIdRecordLevelElement() {
        return idRecordLevelElement;
    }

    public void setIdRecordLevelElement(Integer idRecordLevelElement) {
        this.idRecordLevelElement = idRecordLevelElement;
    }

    public InstitutionCode getInstitutionCode() {
        return institutionCode == null? new InstitutionCode():institutionCode;
    }

    public void setInstitutionCode(InstitutionCode institutionCode) {
        this.institutionCode = institutionCode;
    }

    public RecordLevelElement(Integer idRecordLevelElement, InstitutionCode institutionCode, CollectionCode collectionCode, BasisOfRecord basisOfRecord) {
        this.idRecordLevelElement = idRecordLevelElement;
        this.institutionCode = institutionCode;
        this.collectionCode = collectionCode;
        this.basisOfRecord = basisOfRecord;
    }

    public RecordLevelElement() {
        this.institutionCode = new InstitutionCode();
        this.collectionCode = new CollectionCode();
        this.basisOfRecord = new BasisOfRecord();
    }
    
}
